/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package biofilter.filters;

import biofilter.exceptions.InvalidRecordException;
import biofilter.records.*;

/**
 * This is the simplest of possible filters, constructed mostly for integration
 * testing.
 * @author Daniel Quest
 * @date   Jan 4 2010
 */
public class ToUpperFilter extends SimpleFilter {

    @Override
    protected Record transformRecord(Record r) throws InvalidRecordException {
        String convertMe = r.get();
        Record ret = new MyStubRecord();
        ret.set(convertMe.toUpperCase());

        return ret;
    }

    public Record peek() throws InvalidRecordException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
